import sys
sys.path.append("/home/thomas/SpyderProjects/")
sys.path.append("/home/thomas/SpyderProjects/pycalendar/")

from datetime import date, datetime
from pycalendar.holidayprofiles import *


class FSE(HolidayProfile):

    """ Holiday Profile for the Frankfurt Stock Exchange.

        >>> myChristmas = datetime(2010, 12, 25) #Saturday
        >>> FSE.holiday(myChristmas)
        'Christmas'
        >>> FSE.isHoliday(myChristmas)
        True
        >>> FSE.isBusinessDay(myChristmas)
        False
        >>> FSE.isWeekend(myChristmas)
        True
    """

    weekend = [Saturday, Sunday]
        
    holidaydict = {
    "New Year's Day"    : '(d == 1 and m == January) #can be moved to Monday',
    "Good Friday"       : '(date== gf)',
    "Easter Monday"     : '(date == em)',
    "Labour Day"        : '(d == 1 and m == May)',
    "Christmas Eve"     : '(d == 24 and m == December)',
    "Christmas"         : '(d == 25 and m == December)',
    "Christmas Day"     : '(d == 26 and m == December)',
    "New Year's Eve"    : '(d == 31 and m == December)'
    }   
 


if __name__ == "__main__" :
    import doctest
    doctest.testmod(verbose=True)
